{extend name="default/base" /}
{block name="css"}
<link rel="stylesheet" href="__SHOP__/css/skins/skin-blue.min.css"type="text/css"/>
<link rel="stylesheet" href="__SHOP__/css/index.css" type="text/css"/>
{/block}
{block name="js"}
<script src="__SHOP__/js/index.js"></script>
{/block}
{block name="main"}
<style>body,.wrapper{overflow:hidden;}</style>
<div class="wrapper">
  <header class="main-header">
    <a href="#" class="logo">
      <span class="logo-mini"></span>
      <span class="logo-lg"></span>
    </a>
    <nav class="navbar navbar-static-top">
      <div class="navbar-custom-menu" style='float:left'>
        <ul class='nav navbar-nav'>
          <li><a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
          <span class="sr-only">Toggle navigation</span>
        </a></li>
          {volist name='$sysMenus' id='top'}
          <li><a href='#' class='top-menu' dataid='{$top['menuId']}'><span>{$top['menuName']}</span></a></li>
          {/volist}
        </ul>
      </div>
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
           
           <li id='toMsg' class="j-im">
               <a target='_blank' class="drop-down"style='padding-right: 0px;' href='javascript:void(0)' title='用户信息'><i class='fa fa-bell fa-lg'></i><span class='msg-num'></span></a>
            <div class='j-dorpdown-layer'>
                {if WSTShopGrant('shop/messages/shopMessage')}
                <div id='m-msg'><a href='javascript:void(0)' onclick='WST.redirect(120)'>用户消息<span></span></a></div>
                {/if}
                {if WSTShopGrant('shop/orders/waitdelivery')}
                <div id='m-24'><a href='javascript:void(0)' onclick='WST.redirect(24)'>待发货订单</a><span></span></div>
                {/if}
                {if WSTShopGrant('shop/orders/waituserPay')}
                <div id='m-55'><a href='javascript:void(0)' onclick='WST.redirect(55)'>待付款订单</a><span></span></div>
                {/if}
                {if WSTShopGrant('shop/orders/failure')}
                <div id='m-45'><a href='javascript:void(0)' onclick='WST.redirect(45)'>待退款订单<span></span></a></div>
                {/if}
                {if WSTShopGrant('shop/ordercomplains/shopComplain')}
                <div id='m-25'><a href='javascript:void(0)' onclick='WST.redirect(25)'>投诉订单<span></span></a></div>
                {/if}
                {if WSTShopGrant('shop/goods/stockWarnByPage')}
                <div id='m-54'><a href='javascript:void(0)' onclick='WST.redirect(54)'>库存预警<span></span></a></div>
                {/if}
            </div>
          </li>
          <li id='toMall'><a target='_blank' href='{:url('home/shops/index','shopId='.session('WST_USER.shopId'))}' title='我的店铺主页'><i class='fa fa-home fa-lg'></i></a></li>
          <li id='toLogout'><a class='j-logout' href='#' title='退出系统'><i class='fa fa-power-off fa-lg'></i></a></li>
        </ul>
      </div>
    </nav>
  </header>
  <aside class="main-sidebar">
    <section class="sidebar">
      <div class="user-panel">
        <div class="pull-left image">
          <img src="{:WSTUserPhoto($Think.session.WST_USER.userPhoto)}" class="img-circle">
        </div>
        <div class="pull-left info">
          <p>{$Think.session.WST_USER.loginName}</p>
          {if $Think.session.WST_USER.roleName!=''}
          <p>{$Think.session.WST_USER.roleName}</p>
          {/if}
        </div>
        <div class='pull-left button'>
           <a href='javascript:void(0);' class='j-edit-pass edit-pass'><i class='fa fa-key'></i><span>修改密码</span></a>
           <a href='javascript:void(0);' class='j-logout logout'><i class='fa fa-power-off'></i><span>退出系统</span></a>
        </div>
      </div>

      <ul class="sidebar-menu" data-widget="tree">
          {volist name='$sysMenus' key='key0' id='left0'}
          {if !empty($left0['list'])}
          {volist name="left0['list']" id='left1'}
          <li class="treeview j-menulevel0 j-sysmenu{$left0['menuId']}"  {if $key0>1}style='display:none'{/if}>
             <a href="#">
               <i class="fa fa-{$left1['menuIcon']?$left1['menuIcon']:'eercast'}"></i> <span>{$left1['menuName']}</span>
               <span class="pull-right-container">
                 <i class="fa fa-angle-left pull-right"></i>
               </span>
             </a>
             {if !empty($left1['list'])}
             <ul class="treeview-menu">
                {volist name="left1['list']" id='left2'}
                <li><a id="menuItem{$left2['menuId']}" class='menuItem' href="{:Url($left2['menuUrl'])}" dataid='{$left2['menuId']}'>{$left2['menuName']}
                {/volist}
                </a>
             </ul>
             {/if}
          </li>
          {/volist}
          {/if}
          {/volist}
      </ul>
    </section>
  </aside>
  <div class="content-wrapper">
    <section class="content-header">
      <ol class="breadcrumb">
        <li><a href='#' onclick='javascript:location.reload()'><i class='fa fa-map-marker'></i>卖家中心</a></li>
      </ol>
      <button id='toFullSreen' class="fullscreen"><i class="fa fa-arrows-alt"></i></button>
    </section>
    <section class="content-iframe" style="margin:0px;padding:0;height:100%">
      <iframe id='iframe' class="iframe" width="100%" height="100%" src="{:Url('shop/index/main')}" frameborder="0"></iframe>
    </section>
  </div>
</div>
<div id='editPassBox' style='display:none;padding-top:5px;'>
  <form id='editPassFrom' autocomplete="off">
   <table class='wst-form'>
      <tr>
         <th style='width:100px'>原密码：</th>
         <td><input type='password' id='srcPass' name='srcPass' class='ipt' data-rule="原密码: required;" maxLength='16'/></td>
      </tr>
      <tr>
         <th>新密码：</th>
         <td><input type='password' id='newPass' name='newPass' class='ipt' data-rule="新密码: required;length[6~]" maxLength='16'/></td>
      </tr>
      <tr>
         <th>确认密码：</th>
         <td><input type='password' id='newPass2' name='newPass2' class='ipt' data-rule="确认密码: required;match(newPass);" maxLength='16'/></td>
      </tr>
   </table>
  </form>
</div>
{:hook('shopDocumentListener')}
<script>
var menus = {:json_encode($sysMenus)};
function showImg(opt){
  layer.photos(opt);
}
function showBox(opts){
  return WST.open(opts);
}
</script>
{/block}